<?php


namespace app\admin\model;


use think\facade\Db;
use think\Model;
use think\model\concern\SoftDelete;

class Approval extends Model
{
    use SoftDelete;
    protected $name = 'approval';

    public function admin(){
        return $this->belongsTo(Admin::class,'uid');
    }

    public function typeName(){
        return $this->belongsTo(ApplyType::class,'approval_type_id');
    }
}